import axios from "../../utils/axios";

// 列表
export function getList(query){
    return axios({
        url: "/admin/user/user",
        method: "get",
        params: query
    })
}

// 发布
export function add(query) {
    return axios({
        url: "/admin/zhiku/addinfo",
        method: "post",
        data: query
    });
}

// 删除
export function del(query){
    return axios({
        url: "/admin/user/user/del",
        method: "get",
        params: query
    })
}

// 审核
export function varify(query){
    return axios({
        url: "/admin/user/user/varifyCompany",
        method: "get",
        params: query
    })
}

// 公司列表
export function userCompany(query){
    return axios({
        url: "/admin/user/user/company",
        method: "get",
        params: query
    })
}

// 推送消息
export function addTuisong(query) {
    return axios({
        url: "/admin/user/usermessage/addinfo",
        method: "post",
        data: query
    });
}

// 获取推送消息
export function getTuisong(query) {
    return axios({
        url: "/admin/user/usermessage/getinfo",
        method: "get",
        params: query
    });
}

// 修改推送信息
export function nodifyinfo(query) {
    return axios({
        url: "/admin/user/usermessage/modifyinfo",
        method: "post",
        data: query
    });
}

// 获取用户推送列表
export function getMessageByUser(query) {
    return axios({
        url: "/admin/user/usermessage/getMessageByUser",
        method: "get",
        params: query
    });
}

// 反馈与建议
export function getSuggest(query) {
    return axios({
        url: "/admin/suggest/getinfo",
        method: "get",
        params: query
    });
}
